package ecmnext.gclient.gui;

/***************************************************************/
/*                     SOFTWARE SECTION                        */
/***************************************************************/
/*
 * <p>Name: ECMNext</p>
 * <p>Description: Simulation of the platform of trading Software</p>
 * <p>Licence: General Public License</p>
 * <p>Organisation: EC Marseille</p>
 * <p>Persons involved in the project : groupE Plateforme de Trading</p>
 * <p>Current version: 1.0</p>
 */

/***************************************************************/
/*                       IMPORT SECTION                        */
/***************************************************************/



import java.awt.*;

import javax.swing.*;
import javax.swing.border.*;
import javax.swing.event.*;

import org.jdom.*;
import ecmnext.business.*;
import ecmnext.client.*;
import ecmnext.client.event.*;


import ecmnext.utils.*;
import ecmnext.utils.gui.JLabelRenderer;
import java.util.Hashtable;


/***************************************************************/
/*           Market Properties CLASS SECTION                 */
/***************************************************************/
/**
 * <p>Title : Market Properties</p>
 * <p>Description : </p>
 * @author Xuewen YANG ET Antoine COUDERC
 * @version 1.0
 */


public class MarketProperties extends JPanel
    implements Constants, OperatorPlayedListener,
    ExperimentDeveloppmentListener, NetworkListener, ConnectionListener {

   //JPanel PaneMarketProperties = new JPanel();
   //private static Hashtable evolutionGraphFactories = new Hashtable();
   MarketEvolutionGraph evolutionGraph = new MarketEvolutionGraph();
   TitledBorder titledBorder11;
   public MarketProperties() {
      jbInit();
  }

   public void jbInit() {
    titledBorder11 = new TitledBorder(BorderFactory.createEmptyBorder(6,0,0,0),"Market properties",
                                      TitledBorder.DEFAULT_JUSTIFICATION,
                                      TitledBorder.DEFAULT_POSITION,FONT_CLIENT_TITLE_BORDER);
    this.setBorder(titledBorder11);
    this.setMinimumSize(new Dimension(16, 10));
    this.setPreferredSize(new Dimension(291, 169));
    this.add(evolutionGraph);
   }
   public void addDeal(Deal deal) {
     evolutionGraph.addDeal(deal);
   }
   public void initGraphic() {
     evolutionGraph.initGraphic();
   }

    public void addAssetEvolution(String institutionName) {
      evolutionGraph.addAssetEvolution(institutionName);
    }

  public void newOperator(Operator op) {
  }

  public void experimentBegins() {
  }

  public void experimentFinished() {
  }

  public void periodBegins() {
  }

  public void periodFinished() {
  }

  public void connectionStateChanged(int newState) {
  }

  public void objectReceived(Document xmlObject) {
  }

}
